CC = gcc
CFLAGS = -Wall -DSAFE -ggdb
OBJ = main.o board.o fread.o ai.o ai2.o ai3.o node.o constants.o utilities.o

.PHONY: all clean

%.o: %.c
	$(CC) -c $(CFLAGS) $< -o $@

all: $(OBJ)
	$(CC) $(CFLAGS) $(OBJ) -o ai2048.out

clean:
	rm *.out *.o
